<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>  
<%@include file="/commons/include/html_doctype.html" %>
<html>
<head>
	<title>订单</title>
	<%@include file="/commons/include/get.jsp" %>
	<script type="text/javascript">
		//放置脚本
	</script>
</head> 
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">订单</td>
		<td>
			<div class="menuTool">
			<a class="del" id="listFormDelAll" href="delOrder.htm">删除所选</a>
			<a class="add" href="addOrder1.htm">添加</a>
			<a class="back" onClick="javascript:history.back();" href="#">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="queryForm" method="post" action="getOrder.htm">
<table border="0" cellspacing="0" cellpadding="0" class="queryTable">
	<tr>
		<td class="title">订单号：</td>
		<td class="input"><input id="title" name="order_sn" class="input" value="${fn:escapeXml(param.order_sn)}" /></td>
		<td class="input"><span class="title">客户代码：</span></td>
	  <td class="input"><input id="title2" name="custom_code" class="input" value="${fn:escapeXml(param.custom_code)}" /></td>
	  <td class="input"><span class="title">下单用户代码：</span></td>
	  <td class="input"><input id="title3" name="user_code" class="input" value="${fn:escapeXml(param.user_code)}" /></td>
	  <td class="input"><span class="title">订单状态：</span></td>
	  <td class="input"><select name="status" id="select">
	  	<option value="">请选择</option>
		  <option value="0"<c:if test="${param.status == 0}"> selected</c:if>>订购单未递交到下一级</option>
          <option value="1"<c:if test="${param.status == 1}"> selected</c:if>>已经递交到订单报价</option>
          <option value="2"<c:if test="${param.status == 2}"> selected</c:if>>已经递交到订单确认</option>
          <option value="3"<c:if test="${param.status == 3}"> selected</c:if>>已经递交到订单审核</option>
          <option value="4"<c:if test="${param.status == 4}"> selected</c:if>>已经审核并已经转到送货单复制</option>
          <option value="5"<c:if test="${param.status == 5}"> selected</c:if>>已经复制到送货单中</option>
          <option value="6"<c:if test="${param.status == 6}"> selected</c:if>>用户取消</option>
          <option value="7"<c:if test="${param.status == 7}"> selected</c:if>>审核不通过</option>
	    </select></td>
	  <td class="input">&nbsp;</td>
	  <td class="input">&nbsp;</td>
	</tr>
    <!--
	<tr>
		<td class="title">&nbsp;</td>
		<td class="input">&nbsp;</td>
	  <td class="input">&nbsp;</td>
	  <td class="input">&nbsp;</td>
	  <td class="input">&nbsp;</td>
	  <td class="input">&nbsp;</td>
	  <td class="input">&nbsp;</td>
	  <td class="input">&nbsp;</td>
	  <td class="input">&nbsp;</td>
	  <td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">USER_ID：</td>
		<td class="input"><input id="title" name="user_id" class="input" value="${fn:escapeXml(param.user_id)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">CREATE_DATE：</td>
		<td class="input"><input id="title" name="create_date" class="input" value="${fn:escapeXml(param.create_date)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">CREATE_TIME：</td>
		<td class="input"><input id="title" name="create_time" class="input" value="${fn:escapeXml(param.create_time)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">SUBMIT_DATE：</td>
		<td class="input"><input id="title" name="submit_date" class="input" value="${fn:escapeXml(param.submit_date)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">SUBMIT_TIME：</td>
		<td class="input"><input id="title" name="submit_time" class="input" value="${fn:escapeXml(param.submit_time)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">递交下一级报价日期：</td>
		<td class="input"><input id="title" name="baojia_date" class="input" value="${fn:escapeXml(param.baojia_date)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">BAOJIA_TIME：</td>
		<td class="input"><input id="title" name="baojia_time" class="input" value="${fn:escapeXml(param.baojia_time)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">报价用户ID：</td>
		<td class="input"><input id="title" name="baojia_user_id" class="input" value="${fn:escapeXml(param.baojia_user_id)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">报价用户代码：</td>
		<td class="input"><input id="title" name="baojia_user_code" class="input" value="${fn:escapeXml(param.baojia_user_code)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">报价后递交下一级确认日期：</td>
		<td class="input"><input id="title" name="baojia_qr_date" class="input" value="${fn:escapeXml(param.baojia_qr_date)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">BAOJIA_QR_TIME：</td>
		<td class="input"><input id="title" name="baojia_qr_time" class="input" value="${fn:escapeXml(param.baojia_qr_time)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">订单确认用户代码：</td>
		<td class="input"><input id="title" name="baojia_qr_user_id" class="input" value="${fn:escapeXml(param.baojia_qr_user_id)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">订单确认用户代码：</td>
		<td class="input"><input id="title" name="baojia_qr_user_code" class="input" value="${fn:escapeXml(param.baojia_qr_user_code)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">用户确认订单报价后递交下一级审核日期：</td>
		<td class="input"><input id="title" name="baojia_sh_date" class="input" value="${fn:escapeXml(param.baojia_sh_date)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">BAOJIA_SH_TIME：</td>
		<td class="input"><input id="title" name="baojia_sh_time" class="input" value="${fn:escapeXml(param.baojia_sh_time)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">BAOJIA_SH_USER_ID：</td>
		<td class="input"><input id="title" name="baojia_sh_user_id" class="input" value="${fn:escapeXml(param.baojia_sh_user_id)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">BAOJIA_SH_USER_CODE：</td>
		<td class="input"><input id="title" name="baojia_sh_user_code" class="input" value="${fn:escapeXml(param.baojia_sh_user_code)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
	  <td class="title">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="title">REMARK：</td>
		<td class="input"><input id="title" name="remark" class="input" value="${fn:escapeXml(param.remark)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
    -->
	<tr>
		<td class="query" colspan="10"><input id="_querySubmit_" type="submit" class="button" value="查询" /></td>
	</tr>
</table>
</form>
<div class="line"></div>
<form id="listForm" method="post" action="delOrder.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr class="list_title">
		<td style="width:3%"><input id="chkall" type="checkbox" /></td>
		<td>订单号</td>
		<td>客户名称</td>
		<td>制单日期</td>
		<td>订单状态</td>
		<td>操作</td>
	</tr>
<c:forEach items="${pageModel.result}" var="d" varStatus="status">
	<tr class="${status.index%2==0?'list_even':'list_odd'}">
		<td nowrap="nowrap">
			<input name="keyIndex" type="checkbox" value="${d.id}" />
		</td>
		<td>${fn:escapeXml(d.order_sn)}</td>
		<td>${fn:escapeXml(d.customs_name)}</td>
		<td><fmt:formatDate pattern="yyyy-MM-dd" value="${d.create_date}" /></td>
		<td>${fn:escapeXml(cfn:getOrderStatusText(d.status))}</td>
		<td>
			<div class="menuTool">
            <c:if test="${d.status != 4 && d.status != 5}">	
			<a class="del" href="delOrder.htm?keyIndex=${d.id}">删除</a>
            </c:if>
            <c:choose>            
			<c:when test="${d.status == 0}">	
			<a class="upd" href="updOrder1.htm?keyIndex=${d.id}">修改</a>
            <a class="upd" href="updOrder9.htm?keyIndex=${d.id}">提交</a>
            </c:when>
            <c:when test="${d.status == 1}">
            <a class="upd" href="updOrder5.htm?keyIndex=${d.id}">报价</a>
            </c:when>
            <c:when test="${d.status == 2}">
            <a class="upd" href="updOrder3.htm?keyIndex=${d.id}">订单确认</a>
            </c:when>
            <c:when test="${d.status == 3}">
            <a class="upd" href="updOrder7.htm?keyIndex=${d.id}">审核</a>
            </c:when>
            </c:choose>
            <a class="get" href="getOrderById.htm?keyIndex=${d.id}">详细</a>
			</div>
		</td>
	</tr>
</c:forEach>
</table>
<input id="_submit_" type="submit" style="display:none;" />
</form>
<table border="0" cellspacing="0" cellpadding="0" class="bottomTable">
	<tr><td>${pageNav.page}</td></tr>
</table>
</body>
</html>
